package cn.js.ccit.flowersmall.gift.service.Impl;

import cn.js.ccit.flowersmall.gift.entity.GiftEntity;
import cn.js.ccit.flowersmall.gift.mapper.GiftMapper;
import cn.js.ccit.flowersmall.gift.service.GiftService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GiftServiceImpl implements GiftService {
    @Autowired
    GiftMapper mapper;

    @Override
    public List<GiftEntity> findGifts() {
        return mapper.findGifts();
    }

    @Override
    public GiftEntity getGiftById(Long id) {
        return mapper.getGiftById(id);
    }
}
